Skip to content

fix(validator): update queries validator for cwe and risk score fields#8028

Open
cx-artur-ribeiro wants to merge 6 commits intomasterfrom
AST-145263-improve-queries-validator-script
Open

fix(validator): update queries validator for cwe and risk score fields#8028
cx-artur-ribeiro wants to merge 6 commits intomasterfrom
AST-145263-improve-queries-validator-script

Conversation

@cx-artur-ribeiro
Copy link
Copy Markdown
Contributor

@cx-artur-ribeiro cx-artur-ribeiro commented Apr 6, 2026

Reason for Proposed Changes

  • cwe field is not just a string, it's a numbered string, which was not being validated correctly.
  • riskScore is a float number with only one decimal case;

Proposed Changes

  • Improve queries validator script to validate cwe as a numbered string instead of just a string and float with one decimal place for riskScore;
  • Fix bug in url pagination;
  • Update relevant documentation with proper syntax and more information about the fields;

I submit this contribution under the Apache-2.0 license.

@cx-artur-ribeiro cx-artur-ribeiro self-assigned this Apr 6, 2026
@cx-artur-ribeiro cx-artur-ribeiro requested a review from a team as a code owner April 6, 2026 13:38
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

kics-logo

KICS version: v2.1.20

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 0
LOW LOW 0
INFO INFO 0
TRACE TRACE 0
TOTAL TOTAL 0
Metric Values
Files scanned placeholder 1
Files parsed placeholder 1
Files failed to scan placeholder 0
Total executed queries placeholder 47
Queries failed to execute placeholder 0
Execution time placeholder 0

@cx-artur-ribeiro cx-artur-ribeiro changed the title update: queries validator for cwe field to be a numbered string fix(validator): update queries validator for cwe and risk score fields Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants